home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / tobby_ur.swf / scripts / DefineSprite_56_player_stick / frame_1 / DoAction.as
Encoding:
Text File  |  2010-11-09  |  625 b   |  39 lines

  1. function main()
  2. {
  3.    if(this.procNum == 1 && _root.gplayFlg == true)
  4.    {
  5.    }
  6.    if(this.procNum == 2)
  7.    {
  8.       this.fall();
  9.    }
  10. }
  11. function move(nAngle)
  12. {
  13.    this.protation = nAngle - 270;
  14.    this.py = _parent.handMC._y;
  15.    this.px = _parent.handMC._x;
  16. }
  17. function entryFall(nAngle)
  18. {
  19.    this.adr = nAngle;
  20.    this.procNum = 2;
  21.    this.pdy = 0;
  22. }
  23. function fall()
  24. {
  25.    this.protation += this.adr;
  26.    this.py += this.pdy;
  27.    this.pdy += 1;
  28. }
  29. function clrMC()
  30. {
  31.    this.removeMovieClip();
  32. }
  33. this.px = 250;
  34. this.py = 270;
  35. this.pRotation = 0;
  36. this.pdy = 0;
  37. this.adr = 0;
  38. this.procNum = 1;
  39.